package com.power.sifa.supervise.service;

import com.plf.common.exception.BusinessException;

import java.util.List;
import java.util.Map;

public interface BusinessSuperviseService {

    /**
     * 启动一个业务子流程
     *
     * @param applyid  申请id
     * @param proctype 操作分类
     * @param userid   用户id
     * @throws BusinessException
     */
    Map<String, String> startBusinessProced(String applyid, String proctype, String userid, Map<String, Object> docfield) throws Exception;



    /**
     * 发送申请人短信
     * @param applyid
     * @param userid
     */
    void sendApplicantMessage(String applyid, String userid);


    /**
     * 发送被申请人赣政通代办
     * @param applyid
     * @param phones
     * @param userId
     * @param isDecision 是否是决定环节
     */
    void sendDiTodo(String applyid, String userId, List<String> phones, boolean isDecision);

}
